package common

import "errors"

var (
	// ErrUnknownManageFlowType 未知管理流程类型
	ErrUnknownManageFlowType = errors.New("unknown manage flow type")
	// ErrUnknownManageFlowProposal 未知提案类型
	ErrUnknownManageFlowProposal = errors.New("unknown manage flow proposal type")
	// ErrUnknownConditionType 未知判断类型
	ErrUnknownConditionType = errors.New("unknown condition type")
	// ErrUnknownExecutionType 未知执行节点类型
	ErrUnknownExecutionType = errors.New("unknown execution type")
	// ErrNilParam 参数为空
	ErrNilParam = errors.New("param is nil")
	// ErrLowerUpperBoundBothNil 上下区间均为空
	ErrLowerUpperBoundBothNil = errors.New("lower and upper bound can't be nil at the same time")
	// ErrManageFlowExpired 管理流程已经过期
	ErrManageFlowExpired = errors.New("manage flow already expired")
	// ErrManageFlowNotStarted 管理流程创建时间非法
	ErrManageFlowNotStarted = errors.New("manage flow is not started")
	// ErrRepeatVoteMsg 重复投票
	ErrRepeatVoteMsg = errors.New("repeat vote msg")
	// ErrNotEnoughVotes 投票数不足
	ErrNotEnoughVotes = errors.New("not enough votes")
	// ErrExecutionNotPassed 执行节点流程未通过
	ErrExecutionNotPassed = errors.New("execution not passed")
	// ErrInvalidManageFlowCfg 节点配置非法
	ErrInvalidManageFlowCfg = errors.New("invalid ManageFlowCfg")
)
